<?php

namespace App\Admin\Model;

use App\Admin\Model\{
    Duanzu,
    Users
};
class InvitationCeremony extends Duanzu
{
    //表名
    protected $table = 'invitation_ceremony';
    //主键
    protected $primaryKey = 'id';

    public function users()
    {
        return $this->belongsTo(Users::class, 'mobile', 'mobile');
    }

    public function uid_nackname()
    {
        return $this->hasOne(Users::class, 'uid','invite_uid');
    }
}
